package com.aliang.shopping.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
public class RelateDTO {
        /**
         * 用户id
         */
        private Long userId;
        /**
         * 商品id
         */
        private Long goodsId;
        /**
         * 指数
         */
        private BigDecimal index;

        public RelateDTO(Long userId, Long goodsId) {
                this.userId = userId;
                this.goodsId = goodsId;
        }
}